System and method for providing scatter/gather data processing in a middleware environment

ABSTRACT

Systems and methods are provided for providing scatter/gather data processing. In accordance with an embodiment, a such a system can include a cluster of one or more high performance computing systems, each including one or more processors and a high performance memory. The cluster communicates over an InfiniBand network. The system can also include a middleware environment, executing on the cluster, that includes one or more application server instances. The system can further include a plurality of muxers. Each application server instance includes at least one muxer, and each muxer is operable to collect data from a plurality of locations in the high performance memory, and transfer the data in bulk.

CLAIM OF PRIORITY

This application claims the benefit of priority to U.S. Provisional Patent Application titled “MIDDLEWARE MACHINE PLATFORM”, Application No. 61/383,285, filed Sep. 15, 2010; and U.S. Provisional Patent Application titled “MIDDLEWARE MACHINE PLATFORM”, Application No. 61/384,227, filed Sep. 17, 2010, each of which applications are herein incorporated by reference.

CROSS REFERENCE TO RELATED APPLICATIONS

This application is related to U.S. Patent Application titled “SYSTEM AND METHOD FOR ZERO BUFFER COPYING IN A MIDDLEWARE ENVIRONMENT”, application Ser. No. 13/109,849, filed May 17, 2011, now U.S. Pat. No. 8,856,460, issued Oct. 7, 2014; U.S. Patent Application titled “SYSTEM AND METHOD FOR PARALLEL MUXING BETWEEN SERVERS IN A CLUSTER”, application Ser. No. 13/109,871, filed May 17, 2011, now U.S. Pat. No. 8,756,329, issued Jun. 17, 2014; and U.S. Patent Application titled “SYSTEM AND METHOD FOR SUPPORTING LAZY DESERIALIZATION OF SESSION INFORMATION IN A SERVER CLUSTER”, application Ser. No. 13/167,636, filed Jun. 23, 2011, now U.S. Pat. No. 9,811,541, issued Nov. 7, 2017; each of which applications are herein incorporated by reference.

COPYRIGHT NOTICE

A portion of the disclosure of this patent document contains material which is subject to copyright protection. The copyright owner has no objection to the facsimile reproduction by anyone of the patent document or the patent disclosure, as it appears in the Patent and Trademark Office patent file or records, but otherwise reserves all copyright rights whatsoever.

FIELD OF INVENTION

The present invention is generally related to computer systems and software such as middleware, and is particularly related to systems and methods for scatter/gather data processing in a middleware environment.

BACKGROUND

Within any large organization, over the span of many years the organization often finds itself with a sprawling IT infrastructure that encompasses a variety of different computer hardware, operating-systems, and application software. Although each individual component of such infrastructure might itself be well-engineered and well-maintained, when attempts are made to interconnect such components, or to share common resources, it is often a difficult administration task. In recent years, organizations have turned their attention to technologies such as virtualization and centralized storage, and even more recently cloud computing, which can provide the basis for a shared infrastructure. However, there are few all-in-one platforms that are particularly suited for use in such environments. These are the general areas that embodiments of the invention are intended to address.

SUMMARY

Systems and methods are provided for providing scatter/gather data processing in a middleware environment. In accordance with an embodiment, such a system can include a cluster of one or more high performance computing systems, each including one or more processors and a high performance memory. The cluster communicates over an InfiniBand network. The system can also include a middleware environment, executing on the cluster, that includes one or more application server instances. The system can further include a plurality of multiplexers (hereinafter referred to as a muxer). Each application server instance includes at least one muxer, and each muxer is operable to collect data from a plurality of locations in the high performance memory, and transfer the data in bulk.

BRIEF DESCRIPTION OF THE FIGURES

FIG. 1 shows an illustration of a middleware machine environment, in accordance with an embodiment.

FIG. 2 shows another illustration of a middleware machine platform or environment, in accordance with an embodiment.

FIG. 3 shows a system that utilizes Ethernet protocol, in accordance with an embodiment.

FIG. 4 shows a system that utilizes IPoIB and parallel muxing, in accordance with an embodiment.

FIG. 5 shows a flowchart of a method for providing scatter/gather I/O in accordance with an embodiment.

DETAILED DESCRIPTION

In the following description, the invention will be illustrated by way of example and not by way of limitation in the figures of the accompanying drawings. References to various embodiments in this disclosure are not necessarily to the same embodiment, and such references mean at least one. While specific implementations are discussed, it is understood that this is done for illustrative purposes only. A person skilled in the relevant art will recognize that other components and configurations may be used without departing from the scope and spirit of the invention.

Furthermore, in certain instances, numerous specific details will be set forth to provide a thorough description of the invention. However, it will be apparent to those skilled in the art that the invention may be practiced without these specific details. In other instances, well-known features have not been described in as much detail so as not to obscure the invention.

As described above, in recent years, organizations have turned their attention to technologies such as virtualization and centralized storage, and even more recently cloud computing, which can provide the basis for a shared infrastructure. However, there are few all-in-one platforms that are particularly suited for use in such environments. Described herein is a system and method for providing a middleware machine or similar platform (referred to herein in some implementations as “Exalogic”), which comprises a combination of high performance hardware, together with an application server or middleware environment, and additional features, to provide a complete Java EE application server complex which includes a massively parallel in-memory grid, can be provisioned quickly, and can scale on demand.

In particular, as described herein, systems and methods are provided for providing scatter/gather data processing in a middleware environment. In accordance with an embodiment, a such a system can include a cluster of one or more high performance computing systems, each including one or more processors and a high performance memory. The cluster communicates over an InfiniBand network. The system can also include a middleware environment, executing on the cluster, that includes one or more application server instances. The system can further include a plurality of muxers. Each application server instance includes at least one muxer, and each muxer is operable to collect data from a plurality of locations in the high performance memory, and transfer the data in bulk.

Typically, the memory space in a computer system is fragmented. That is, related pieces of data are generally not stored in a single contiguous area, but rather are spread throughout the memory space. The process of writing the data to the various locations in memory where it is stored is referred to as scattering. Similarly, the processing of reading the data from the various locations in memory where it is stored is referred to as gathering. In a typical system, limited by a relatively low maximum transfer unit (MTU), each piece of data may be scattered and gathered individually, or in small groups. However, in accordance with an embodiment, the system can obtain pointers to all of the pieces of data and perform a single bulk write. Because writing each piece of data separately can require many context switches for the CPU, by writing in bulk context switching is greatly reduced and system performance, particularly latency, is improved. Additionally, writing in bulk better utilizes the available bandwidth, making the system more efficient. In accordance with an embodiment, the increase in bandwidth, and the concomitant increase in MTU, provides significant system improvements, in particular it minimizes context switching which is CPU intensive. Instead of data transfers that require multiple round trips, and therefore multiple context switches, over many iterations, the same data transfer can be accomplished in only a few, or even a single, iteration.

FIG. 1 shows an illustration of a middleware machine environment 100, in accordance with an embodiment. As shown in FIG. 1, each middleware machine system 102 includes several middleware machine rack components 104, each of which includes a combination of high-performance middleware machine hardware nodes 106 (e.g., 64-bit processors, high performance large memory, and redundant InfiniBand and Ethernet networking), and a middleware machine software environment 108. The result is a complete application server environment which can be provisioned in minutes rather than days or months, and which can scale on demand. In accordance with an embodiment, each middleware machine system can be deployed as a full, half, or quarter rack, or other configuration of rack components, and several middleware machine systems can be coupled together, again using InfiniBand, to create larger environments. Each middleware machine software environment can be provisioned with several application server or other software instances, for example as shown in FIG. 1, an application server instance 109 could comprise a virtual machine 116, operating system 120, virtualization layer 124, and application server layer 128 (e.g. WebLogic, including servlet 132, EJB 134, and Gridlink 136 containers); while another application server instance 110 could comprise a virtual machine 118, operating system 122, virtualization layer 126, and data grid layer 140 (e.g. Coherence, including an active cache 142). Each of the instances can communicate with one another, and with both its middleware machine hardware node, and other nodes, using a middleware machine integration component 150, such as an ExaLogic integration pack, which itself provides several optimization features, such as support for InfiniBand and other features, as described in further detail below.

FIG. 2 shows another illustration of a middleware machine platform or environment, in accordance with an embodiment. As shown in FIG. 2, each application server instance can act as a sender and/or receiver 160, 161 within the middleware machine environment. Each application server instance is also associated with a muxer 162, 163, that allows application servers to communicate with one another via an InfiniBand network 164. In the example shown in FIG. 2, an application server instance can include middleware machine software environment features 180 such as a kernel space 162, user space 164, and application server (e.g. WebLogic space) 166, which in turn can includes a sockets direct protocol 168, JVM (e.g. JRockit/Hotspot layer) 170, WLS core 172, servlet container 174, and JSP compiler 176. In accordance with other examples, other combinations of middleware-type software can be included. In accordance with various embodiments, the machine integration component can provide features such as Zero Buffer Copies, Scatter/Gather I/O, T3 Connections, Lazy Deserialization, and GridLink DataSource, to provide the basis for, and improve performance within, the shared infrastructure.

Scatter/Gather I/O

In accordance with an embodiment, the system can use Scatter/Gather I/O, which minimizes fragmentation of network packets, allowing the OS to perform fragmentation based on the use of Java New I/O (NIO). Additionally, in accordance with an embodiment, the system uses Internet Protocol over InfiniBand (IPoIB) protocol, which has a maximum transfer unit (MTU) of 64 KB. By comparison, Ethernet has an MTU of 1.5 KB. Using IPoIB allows the application server, e.g. WebLogic Server, to write more data at a time. Additionally, typical Ethernet connections provide speeds on the order of 1 Gb/s, however, by using an InfiniBand network, speeds of upwards of 40 Gb/s are available. This provides greater flexibility and allows much more data to be passed through the connection. Ideally, the system that utilizes such a connection can adapt to push more data through the network to saturate, and efficiently use, the available bandwidth.

FIG. 3 shows a system that utilizes Ethernet protocol, in accordance with an embodiment. In a system that utilizes an Ethernet network 300, data can only be written in relatively small portions. As shown in FIG. 3, server 302 is connected to server 304 via an Ethernet network 300. The two servers communicate across a single channel using single muxers 306 and 308. Data transmissions are limited by the Ethernet connection which, as shown in FIG. 3, force the servers to communicate in 4 KB chunks. Attempts to transmit more data than this at a time, and the capacity of the network will be exceeded. This forces more work to be performed at the kernel level, specifically the kernel level divides the data into smaller units and imposes flow control on the fly. This can be costly in time and resources.

FIG. 4 shows a system that utilizes IPoIB and parallel muxing, in accordance with an embodiment. As described above, the InfiniBand network provides greater bandwidth compared to typical Ethernet connections. This greater bandwidth allows for a larger MTU to be used. As shown in FIG. 4, server 306 is connected to server 308 over an InfiniBand network 310. By utilizing the greater bandwidth available through InfiniBand, the system can push data through in much larger, as compared to Ethernet, 64 KB chunks. In such a system, the kernel level recognizes the increased bandwidth and pushes the larger data units without performing the additional work of further dividing the data into smaller units and imposing flow control.

In accordance with an embodiment, within a cluster, multiple parallel logical connections, i.e., channels, can be used between servers. This allows for more data to be passed between servers concurrently, enabling multiple threads to execute in parallel. As shown in FIG. 4, each server utilizes a parallel muxer, 312 and 314, which can manage the various connections to ensure that the multiple threads do not interfere with, or block, one another. This further improves the use of the available bandwidth improving the efficiency of data transfers between servers.

FIG. 5 shows a flowchart of a method for providing scatter/gather I/O in accordance with an embodiment. At step 400, a cluster of one or more high performance computing systems is provided. Each high performance computing system can include one or more processors and a high performance memory. The cluster can communicate over an InfiniBand network. At step 402, a middleware environment, executing on the cluster, that includes one or more application server instances is provided. At step 404, a plurality of muxers are provided. Each application server instance includes at least one muxer. At step 406, a first muxer, on a first application server instance, collects data from a plurality of locations in the high performance memory. At step 408, the first muxer transfers the data in bulk to a second muxer on a second application server.

In accordance with an embodiment, the method shown in FIG. 4 can further include comprising managing, by each muxer, a plurality of threads transmitting data across a plurality of parallel channels. A user can configure how many parallel channels are included in the plurality of parallel channels. Additionally, as described above, each muxer can be a New I/O (NIO) muxer. Further, each data transfer can use scatter/gather data processing.

The present invention can be conveniently implemented using one or more conventional general purpose or specialized digital computer, computing device, machine, or microprocessor, including one or more processors, memory and/or non-transitory computer readable storage media programmed according to the teachings of the present disclosure. Appropriate software coding can readily be prepared by skilled programmers based on the teachings of the present disclosure, as will be apparent to those skilled in the software art.

In some embodiments, the present invention includes a computer program product which is a computer readable storage medium (media) having instructions stored thereon/in which can be used to program a computer to perform any of the processes of the present invention. The computer readable storage medium can include, but is not limited to, any type of disk including floppy disks, optical discs, DVD, CD-ROMs, microdrive, and magneto-optical disks, ROMs, RAMs, EPROMs, EEPROMs, DRAMs, VRAMs, flash memory devices, magnetic or optical cards, nanosystems (including molecular memory ICs), or any type of media or device suitable for storing instructions and/or data.

The foregoing description of the present invention has been provided for the purposes of illustration and description. It is not intended to be exhaustive or to limit the invention to the precise forms disclosed. Many modifications and variations will be apparent to the practitioner skilled in the art. The embodiments were chosen and described in order to best explain the principles of the invention and its practical application, thereby enabling others skilled in the art to understand the invention for various embodiments and with various modifications that are suited to the particular use contemplated. It is intended that the scope of the invention be defined by the following claims and their equivalence. 

What is claimed is:
 1. A system for providing scatter/gather data processing, comprising: a plurality of microprocessors including a first microprocessor and a second microprocessor; a cluster of a plurality of application server instances executing on the plurality of microprocessors, wherein a first application server instance of the plurality of application server instances executes on the first microprocessor, and a second application server instance of the plurality of application server instances executes on the second microprocessor; wherein the first application server instance and the second application server instance communicate through a switch fabric network; wherein each application server instance includes a software muxer; a plurality of parallel logical channels between the first application server instance and the second application server instance, wherein each parallel logical channel is created based on a replication channel template configured on a cluster management bean, and wherein the number of the plurality of parallel logical channels is specified by an attribute in a server management bean; wherein the first microprocessor executes the software muxer on the first application server instance to obtain a plurality of pointers, wherein each pointer points to one or more of a plurality of pieces of data, wherein the plurality of pieces of data are stored in different locations in a memory allocated to the first application server instance, configure a plurality of threads to execute the plurality of parallel logical channels, collect the plurality of pieces of data from the different locations in the memory using the plurality of pointers, and transfer, in a single bulk write and using a single context switch of the first microprocessor, the plurality of pieces of data collected using the plurality of pointers concurrently over the plurality of parallel logical channels from the first application server instance to the second application server instance.
 2. The system of claim 1 wherein each muxer is a New I/O (NIO) muxer.
 3. The system of claim 1, further comprising a utility function configured to determine whether the plurality of parallel logical channels have been configured, and cache a result of the determination for subsequent use.
 4. The system of claim 1, wherein the first application server instance, at a kernel level, operates to recognize an increased bandwidth and transfers the data without imposing a flow control.
 5. The system of claim 1, wherein the first muxer is a parallel muxer.
 6. The system of claim 1, wherein the plurality of pieces of data are related to one another.
 7. The system of claim 1, wherein the memory allocated to the first application server instance is a high performance memory.
 8. A method for providing scatter/gather data processing, comprising: configuring a cluster of a plurality of application server instances executing on a plurality of microprocessors including a first microprocessor and a second microprocessor, wherein each application server instance includes a software muxer, wherein a first application server instance of the plurality of application server instances executes on the first microprocessor, and a second application server instance of the plurality of application server instances executes on the second microprocessor; wherein the first application server instance and the second application server instance communicate through a switch fabric network; configuring a plurality of parallel logical channels between the first application server instance and the second application server instance, wherein each parallel logical channel is created based on a replication channel template configured on a cluster management bean, and wherein the number of the plurality of parallel logical channels is specified by an attribute in a server management bean; executing, by the first microprocessor the software muxer on the first application server instance to perform the steps comprising obtaining a plurality of pointers, wherein each pointer points to one or more of a plurality of pieces of data, wherein the plurality of pieces of data are stored in different locations in a memory allocated to the first application server instance, configuring a plurality of threads to execute the plurality of parallel logical channels, collecting the plurality of pieces of data from the different locations in the memory using the plurality of pointers, transferring, in a single bulk write and using a single context switch of the first microprocessor, the plurality of pieces of data collected using the plurality of pointers concurrently over the plurality of parallel logical channels from the first application server instance to the second application server instance.
 9. The system of claim 8 wherein each muxer is a New I/O (NIO) muxer.
 10. The method of claim 8, further comprising determining, via a utility function, whether the plurality of parallel logical channels have been configured, wherein a result of the determination is cached for subsequent use.
 11. The method of claim 8, wherein the first application server instance, at a kernel level, operates to recognize an increased bandwidth and transfers the data without imposing a flow control.
 12. The method of claim 8, wherein the first muxer is a parallel muxer.
 13. The method of claim 8, wherein the plurality of pieces of data are related to one another.
 14. The method of claim 8, wherein the memory allocated to the first application server instance is a high performance memory.
 15. A non-transitory computer readable storage medium including instructions stored thereon which, when executed by a computer, cause the computer to perform the steps comprising: configuring a cluster of a plurality of application server instances executing on a plurality of microprocessors including a first microprocessor and a second microprocessor, wherein each application server instance includes a software muxer, wherein a first application server instance of the plurality of application server instances executes on the first microprocessor, and a second application server instance of the plurality of application server instances executes on the second microprocessor; wherein the first application server instance and the second application server instance communicate through a switch fabric network; configuring a plurality of parallel logical channels between the first application server instance and the second application server instance, wherein each parallel logical channel is created based on a replication channel template configured on a cluster management bean, and wherein the number of the plurality of parallel logical channels is specified by an attribute in a server management bean; executing, by the first microprocessor the software muxer on the first application server instance to perform the steps comprising obtaining a plurality of pointers, wherein each pointer points to one or more of a plurality of pieces of data, wherein the plurality of pieces of data are stored in different locations in a memory allocated to the first application server instance, configuring a plurality of threads to execute the plurality of parallel logical channels, collecting the plurality of pieces of data from the different locations in the memory using the plurality of pointers, transferring, in a single bulk write and using a single context switch of the first microprocessor, the plurality of pieces of data collected using the plurality of pointers concurrently over the plurality of parallel logical channels from the first application server instance to the second application server instance.
 16. The non-transitory computer readable storage medium of claim 15 wherein each muxer is a New I/O (NIO) muxer.
 17. The non-transitory computer readable storage medium of claim 15, further comprising determining, via a utility function, whether the plurality of parallel logical channels have been configured, wherein a result of the determination is cached for subsequent use.
 18. The non-transitory computer readable storage medium of claim 15, wherein the first application server instance, at a kernel level, operates to recognize an increased bandwidth and transfers the data without imposing a flow control.
 19. The non-transitory computer readable storage medium of claim 15, wherein the first muxer is a parallel muxer.
 20. The non-transitory computer readable storage medium of claim 15, wherein the plurality of pieces of data are related to one another.
 21. The non-transitory computer readable storage medium of claim 15, wherein the memory allocated to the first application server instance is a high performance memory. 